package com.ldu.dao.mapper;

import com.ldu.dao.dataobject.CatelogDO;
import com.ldu.dao.query.CatelogQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for Catelog.
 */
public interface CatelogMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(CatelogQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CatelogQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CatelogDO record);

    /**
     * insert selective.
     */
    int insertSelective(CatelogDO record);

    /**
     * select by query condition.
     */
    List<CatelogDO> selectByQuery(CatelogQuery query);

    /**
     * select by primary key.
     */
    CatelogDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") CatelogDO record, @Param("query") CatelogQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") CatelogDO record, @Param("query") CatelogQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CatelogDO record);
}